-
Notifications
You must be signed in to change notification settings - Fork 0
Updating setup and readme to be more robust #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| def system!(cmd) | ||
| puts "==> Running: #{cmd}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm does the lack of splat here make a difference?
| puts "\n== rbenv not found. Installing via Homebrew ==" | ||
| system!("brew install rbenv") | ||
| else | ||
| puts "rbenv already installed" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason this puts already installed but the docker and homebrew steps don't?
| ENV.key?("RBENV_ROOT") || | ||
| ENV["PATH"].split(":").any? { |p| p.include?(".rbenv/shims") } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll be honest i don't understand this
| # Auto-activate mise for this process | ||
| unless ENV["MISE_SHELL"] | ||
| puts "Activating mise..." | ||
| activate = `mise activate zsh`.strip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this also i am confused by
jenny-heath
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i got a little lost trying to understand some of the additions to the setup script. maybe we can all review it together in the next day or two!
I had to install a few things, set a few things in my path, change versions of a few things, etc to get the project working the first time. This is my best guess on what a clean install/setup script could look like to confirm things are installed with valid versions; Running it subsequently doesn't throw any errors for me, so at worst the next engineer has to work with me to iterate more on this!